package com.marcandjo.gwtproject.client.model.impl;

import com.marcandjo.gwtproject.client.model.Photo;

public class CategoryOneStubImpl extends CategoryImpl 
{
	public CategoryOneStubImpl(String id, String description)
	{
		super(id, description);
		
		addPhoto("photo 1", "photo 1 desc", "http://www.laschlucht.labellemontagne.com/design/animations/Webcam/8h00001.jpg");
		addPhoto("photo 2", "photo 2 desc", "http://www.laschlucht.labellemontagne.com/design/animations/Webcam/8h00003.jpg");
		addPhoto("photo 3", "photo 3 desc", "http://www.meteo-eifel.de/webcam/webcam1.jpg");
		addPhoto("photo 4", "photo 4 desc", "http://www.meteo-eifel.de/webcam/webcam2.jpg");
		addPhoto("photo 5", "photo 5 desc", "http://www.smiba.fr/ftp/webcam/webcam.jpg");
	}
	
	private void addPhoto(final String id, final String description, final String url)
	{
		add(new Photo() {
			
			public String getId() {
				return id;
			}
			
			public String getDescription() {
				return description;
			}

			public String getUrl() {
				return url;
			}
			
		});
	}
}
